package org.lds.message.center.admin.business.channel.controller;


import org.lds.message.center.admin.business.channel.service.ChannelService;
import org.lds.message.center.common.model.ResultDTO;
import org.lds.message.center.common.model.request.RegisterChannelAdminRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 前端控制器
 *
 * @author lidongsheng
 * @since 2024-12-22
 */
@RestController
@RequestMapping("/api/channel")
public class ChannelController {

    @Autowired
    private ChannelService channelService;

    @PostMapping("/register")
    public ResultDTO<Long> registerChannel(@RequestBody RegisterChannelAdminRequest request) {
        return channelService.registerChannel(request);
    }

}